package com.chuanke.ckfamily.service.social;
import java.util.Map;

import com.weijie.core.IBaseBiz;
import com.chuanke.ckfamily.dao.social.model.SpecialRelation;
import com.chuanke.ckfamily.service.exception.CFException;

public interface SpecialRelationService extends IBaseBiz<SpecialRelation> {

	SpecialRelation findSpecialRelation(Long user_id, Long target_user_id,int relation_type);
	/**
	 * 是否静音
	 * true：已静音 false：未静音
	 * @param user_id
	 * @param target_user_id
	 * @return
	 */
	boolean isMute(Long user_id, Long target_user_id);
	/**
	 * 是否拉黑
	 * true：已拉黑 false：未拉黑
	 * @param user_id
	 * @param target_user_id
	 * @return
	 */
	boolean isBlack(Long user_id, Long target_user_id);

	/**
	 * 把指定用户加入到静音名单中
	 * @param uid
	 * @param tuserId
	 * @param value 
	 * @return
	 */
	boolean mute(Long uid, Long tuserId, int value)throws CFException;

	/**
	 * 把指定用户加入到黑名单
	 * @param uid
	 * @param tuserId
	 * @param value
	 * @return
	 */
	Map<String, Object> black(Long uid, Long tuserId, int value)throws CFException;
}